$(function() {
	var clickcount=0;
    $("#toggle").click(function(){
		$("#use").slideToggle();
        $(".navToggle9").toggleClass("open");
		clickcount++;
		var trigger = null;
		if(clickcount%2==1) { 
	        $("#bg-logo").css({"background":"#2c2c2c"});
			$(".index-page").css({"display":"none"});
			$(".icon-bt").css({"display":"none"});
			$(".detail.header").css({"position":"absolute","background":"#2c2c2c"});
	    } else {
			$(".index-page").css({"display":"block"});
			trigger = setTimeout(function(){
			    $("#bg-logo").css({"background":"url(./images/logo1.png) #fff center no-repeat","background-size":"130px"});
			    $(".icon-bt").css({"display":"block"});
			    $(".detail.header").css({"position":"fixed","background":"#fff"});
			},350);
	  	  clickcount-=2;
	    }
    });
    $(".menu-logo1").click(function(){
		$(".logo-detail1").slideToggle();
	});
	$(".menu-logo2").click(function(){
		$(".logo-detail2").slideToggle();
	});
	$(".menu-logo3").click(function(){
		$(".logo-detail3").slideToggle();
	});
	$(".menu-logo4").click(function(){
		$(".logo-detail4").slideToggle();
	});
	$(".menu-logo5").click(function(){
		$(".logo-detail5").slideToggle();
	});
	$(".select select").focus(function(){
        $(this).css({"background":"url(./images/jtup.png) #f7f9fa no-repeat scroll right center","background-position":"calc(100% - 10px) 15px","background-size":"15px"});
	}).blur(function () { 
        $(this).css({"background":"url(./images/jtdown.png) #f7f9fa no-repeat scroll right center","background-position":"calc(100% - 10px) 15px","background-size":"15px"});
    });
});
